package org.example.erp.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.erp.domain.Sales;
import org.example.erp.domain.SalesOrder;
import org.example.erp.service.SalesOrderService;
import org.example.erp.mapper.SalesOrderMapper;
import org.springframework.stereotype.Service;

/**
* @author dell
* @description 针对表【sales_order】的数据库操作Service实现
* @createDate 2024-11-18 09:12:18
*/
@Service
public class SalesOrderServiceImpl extends ServiceImpl<SalesOrderMapper, SalesOrder>
    implements SalesOrderService{
    public IPage<SalesOrder> findorder(Integer currentPage, Integer pageSize,String salesCode,
                                  String salesName,Integer status,
                                  String customerCode,String customerName,
                                  String orderDate,String deliveryDate,

                                  Integer orderCategory
                              ){
        Page<SalesOrder> page = new Page<>(currentPage, pageSize);
        return baseMapper.findorder(page,salesCode,salesName,status,customerCode,customerName,orderDate,deliveryDate,orderCategory);
    }
}




